/*
 * Copyright 2009 Kaspar Minosiants http://www.minosiants.com.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.minosiants.confluence.blog.plugin.tweet2it;

import java.util.Date;
/**
 *	Project home: http://tweet2it.minosiants.com
 *
 *  @author Kaspar Minosiants
 *
 * 	$Id:$
 */
public class TwitterDirectMessage {
	private String id;
	private String sender_id;
	private String sender_screen_name;
	private String recipient_screen_name;
	private String text;
	private Date created_at;
	private TwitterUser sender;
	//private TwitterUser recipient;
	private ITextRenderer renderer=GeneralTextRenderer.instance ;
	public String getRenderedText() {		
		return renderer.render(text);
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSender_id() {
		return sender_id;
	}
	public void setSender_id(String senderId) {
		sender_id = senderId;
	}
	public String getSender_screen_name() {
		return sender_screen_name;
	}
	public void setSender_screen_name(String senderScreenName) {
		sender_screen_name = senderScreenName;
	}
	public String getRecipient_screen_name() {
		return recipient_screen_name;
	}
	public void setRecipient_screen_name(String recipientScreenName) {
		recipient_screen_name = recipientScreenName;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Date getCreated_at() {
		return created_at;
	}
	public void setCreated_at(Date createdAt) {
		created_at = createdAt;
	}
	public TwitterUser getSender() {
		return sender;
	}
	public void setSender(TwitterUser sender) {
		this.sender = sender;
	}
	public TwitterUser getUser(){
		return sender;
	}
	
}
